package com.soft.model;

public class User {

	private int id;

	private String username;

	private String password;

	private String addtime;

	private String usercname;
	
	private String imgname;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getAddtime() {
		if (addtime != null && addtime.contains(".0")) {
			addtime = addtime.replace(".0", "");
		}
		return addtime;
	}

	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}

	public String getUsercname() {
		return usercname;
	}

	public void setUsercname(String usercname) {
		this.usercname = usercname;
	}

	public String getImgname() {
		return imgname;
	}

	public void setImgname(String imgname) {
		this.imgname = imgname;
	}
}